<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>在此处插入标题</title>
</head>
<body>
<%
 	String n=request.getParameter("uname");
 	String p=request.getParameter("password");
 	//laoliu和123456
 	if(n.startsWith("java56")&&"123456".equals(p)){
 		//out.print("welcome，欢迎你");
 		//成功了，去out.jsp
 		//response.sendRedirect("out.jsp");
 		session.setAttribute("USER_LOGIN", n);
 		response.sendRedirect("shuaige.jsp");
 		return;
 	}else{
 		out.print("用户名或者密码错误！");
 		//response.sendRedirect("login.jsp");
 	}
 %>
</body>
</html>